package xcmg.device.dao.mapper.agentPlan;

import java.math.BigDecimal;
import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import xcmg.device.dao.entity.agentPlan.AgentPlanDetailDO;

/**
 * @author wangyong
 */
@Mapper
public interface AgentPlanDetailMapper {

  AgentPlanDetailDO getById(@Param("id") String id);

  List<AgentPlanDetailDO> listByPlanId(@Param("planId") String planId);

  Integer insert(AgentPlanDetailDO agentPlanDetailDO);

  /**
   * 删除采购计划的零件
   *
   * @param planId
   * @return
   */
  Integer deleteByPlanId(@Param("planId") String planId);

  AgentPlanDetailDO getByMaterialsNo(@Param("planNo") String planNo, @Param("materialsNo") String materialsNo);

  Integer updateByMaterialsNo(AgentPlanDetailDO detailDO);
}
